﻿<%@ Page Title="" Language="C#" MasterPageFile="~/GUI/User/TrangCaNhan.master" AutoEventWireup="true" CodeBehind="ChiTietPlayList.aspx.cs" Inherits="ProjectWebNhac.GUI.User.ChiTietPlayList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <link href="js/jPlayer/skin/blue.monday/jplayer.blue.monday.css" rel="stylesheet" type="text/css" />
 <script type="text/javascript">
//<![CDATA[


    $(document).ready(function () {
        var jsonobj = [];
       $('ul.listMusic li a').each(function (index) {
       var mp3 = jsonobj.push({ 'mp3': '../../Nhac/'+$(this).attr('href') });
       var title = [];
       title.push(jQuery(this).text());
       jsonobj[mp3 - 1]['title'] = title;
        });
        /*Loop through a given list and push it into a JSon array*/
        var cssSelector = {
            jPlayer: "#jquery_jplayer_2",
            cssSelectorAncestor: "#jp_container_2"
        };
        var playlist = [];
        var options = {
            swfPath: "js",
            supplied: "oga, mp3",
            wmode: "window",
            smoothPlayBar: true,
            keyEnabled: true,
            playlistOptions: {
            autoPlay: true,
            enableRemoveControls: false
            },
        };
        var myPlaylist = new jPlayerPlaylist(cssSelector, playlist, options);
        for (i = 0; i < jsonobj.length; i++) {
            myPlaylist.add(jsonobj[i]);
        }
    });
</script>
 
 
 <div class="main-top span9">
                            <div class="span9 no-margin">
                                <h1>Playlist</h1>
                                <div class="options-line">
                                    <div class="breadcrumb-container">
                                        <ul class="breadcrumb">
                                            <li><a href="TrangChu.aspx">Trang chủ</a> <span class="divider">»</span></li>
                                            <li class="active">Nghe playlist</li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                                
             <div class="span6 no-margin online-player album-article"  style="width: 850px;">
               <div id="jquery_jplayer_2" class="jp-jplayer">
               </div>
                <div id="detail" runat="Server">
                         <div class="song" style="background-color:#f0f0f0" >
                              <h1>Thông Tin PlayList</h1>
                            </div>
                            <div class="info-line"><span>Tên Playlist: </span> 
                                <asp:Label ID="lbTenPlaylist" runat="server" Text=""></asp:Label> 
                                </div>
                            <div class="info-line"><span>Ngày Tạo :</span>
                                <asp:Label ID="lbNgayTao" runat="server" Text=""></asp:Label>
                            </div>
                   </div>
		        <div id="jp_container_2" class="jp-audio" style="width: 565px;">
			<div class="jp-type-playlist">
				<div class="jp-gui jp-interface">
					<ul class="jp-controls">
						<li><a href="javascript:;" class="jp-previous" tabindex="1">previous</a></li>
						<li><a href="javascript:;" class="jp-play" tabindex="1">play</a></li>
						<li><a href="javascript:;" class="jp-pause" tabindex="1">pause</a></li>
						<li><a href="javascript:;" class="jp-next" tabindex="1">next</a></li>
						<li><a href="javascript:;" class="jp-stop" tabindex="1">stop</a></li>
						<li><a href="javascript:;" class="jp-mute" tabindex="1" title="mute">mute</a></li>
						<li><a href="javascript:;" class="jp-unmute" tabindex="1" title="unmute">unmute</a></li>
						<li><a href="javascript:;" class="jp-volume-max" tabindex="1" title="max volume">max volume</a></li>
					</ul>
					<div class="jp-progress">
						<div class="jp-seek-bar">
							<div class="jp-play-bar"></div>
						</div>
					</div>
					<div class="jp-volume-bar">
						<div class="jp-volume-bar-value"></div>
					</div>
					<div class="jp-time-holder">
						<div class="jp-current-time"></div>
						<div class="jp-duration"></div>
					</div>
					<ul class="jp-toggles">
						<li><a href="javascript:;" class="jp-shuffle" tabindex="1" title="shuffle">shuffle</a></li>
						<li><a href="javascript:;" class="jp-shuffle-off" tabindex="1" title="shuffle off">shuffle off</a></li>
						<li><a href="javascript:;" class="jp-repeat" tabindex="1" title="repeat">repeat</a></li>
						<li><a href="javascript:;" class="jp-repeat-off" tabindex="1" title="repeat off">repeat off</a></li>
					</ul>
				</div>
				<div class="jp-playlist">
					<ul>
						<li></li>
					</ul>
				</div>
				<div class="jp-no-solution">
					<span>Update Required</span>
					To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
				</div>
			</div>
		</div>
               
                <div style="display:none" id="hiddenPlaylist">
            <ul class="listMusic">
                <asp:Repeater ID="rePlayList" runat="server">
                <ItemTemplate>
                    <li>
                        <a href="<%#Eval("LinkBaiHat") %>"><%#Eval("TenBaiHat") %></a>
                    </li>
                </ItemTemplate>
                </asp:Repeater>
            	
            </ul>
        </div>
                        
               </div>
     


</asp:Content>
